﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nucleic.Core.DoMain
{
    /// <summary>
    /// ☆☆☆☆费用表或订单表☆☆☆☆
    /// </summary>
    [SugarTable("order_info")]

    public class order_info
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

        public int fees_id { get; set; }
        public DateTime pay_time { get; set; }
        public int pat_id { get; set; }
        /// <summary>
        /// 对应预约信息唯一id
        /// </summary>
        public int appo_id { get; set; }
        public string item_id { get; set; }
        public decimal price { get; set; }
        public int num { get; set; }
        public decimal total_cost { get; set; }
        public string orders_id { get; set; }
        public string wx_order_no { get; set; }

        /// <summary>
        /// 0正常,1=作废,2红冲
        /// </summary>
        public string status { get; set; }
        public string tel { get; set; }
        public string idnum { get; set; }
        public string pat_name { get; set; }

        /// <summary>
        /// 电子票据代码
        /// </summary>
        public string einvoicecode { get; set; }

        /// <summary>
        /// 电子票据号码
        /// </summary>
        public string einvoicenumber { get; set; }

        /// <summary>
        /// 校验码
        /// </summary>
        public string randomnumber { get; set; }

        /// <summary>
        /// 0未开票,1已开票,2已红冲
        /// </summary>
        public int invoiceStatus { get; set; }
    }
}
